﻿@model IEnumerable<KurupiraApp.Models.Grupo>

@{
    ViewBag.Title = "Index";
}

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span4">
            @RenderPage("partial/sidenavmenu.cshtml")
        </div>
        <div class="span8">            
            <table class="table table-striped">
                <tr>
                    <th>
                        Título
                    </th>
                    <th>
                        Descrição
                    </th>
                    <th></th>
                </tr>

            @foreach (var item in Model) {
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.titulo)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.desc)
                    </td>
                    <td>
                        @Html.ActionLink("Edit", "Edit", new { id=item.GrupoID }) |
                        @Html.ActionLink("Details", "Details", new { id=item.GrupoID }) |
                        @Html.ActionLink("Delete", "Delete", new { id=item.GrupoID })
                    </td>
                </tr>
            }
            </table>

        </div>
    </div>
</div>